<!doctype html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <!-- Apple devices fullscreen -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <!-- Apple devices fullscreen -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <link rel="shortcut icon" type="image/x-icon"
          href="{$tpshop_config.shop_info_store_ico|default='/public/static/images/logo/storeico_default.png'}"
          media="screen"/>
    <title>上海环境新闻</title>
    <script type="text/javascript">
        var SITEURL = window.location.host + '/index.php/admin';
    </script>

    <link href="__PUBLIC__/static/css/main.css" rel="stylesheet" type="text/css">
    <link href="__PUBLIC__/static/js/jquery-ui/jquery-ui.min.css" rel="stylesheet" type="text/css">
    <link href="__PUBLIC__/static/font/css/font-awesome.min.css" rel="stylesheet"/>
    <script type="text/javascript" src="__PUBLIC__/static/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/static/js/jquery-ui/jquery-ui.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/static/js/dialog/dialog.js" id="dialog_js"></script>
    <script type="text/javascript" src="__PUBLIC__/static/js/jquery.cookie.js"></script>
    <script type="text/javascript" src="__PUBLIC__/static/js/admincp.js"></script>
    <script type="text/javascript" src="__PUBLIC__/static/js/jquery.validation.min.js"></script>
    <script src="__PUBLIC__/js/layer/layer.js"></script><!--弹窗js 参考文档 http://layer.layui.com/-->
    <script src="__PUBLIC__/js/global.js"></script>
</head>
<body>
<div class="admincp-header">
    <div class="bgSelector"></div>
    <!--<div id="foldSidebar"><i class="fa fa-outdent " title="展开/收起侧边导航"></i></div>-->
    <div class="admincp-name" onClick="javascript:openItem('welcome|Index');">
        <img style="width: 148px;height: 28px"
             src="__PUBLIC__{$tpshop_config.shop_info_admin_home_logo|default='/static/images/logo/admin_home_logo_default.png'}"
             alt="">
    </div>
    <div class="nc-module-menu">
        <ul class="nc-row">
            <li data-param="system"><a href="javascript:void(0);" style="font-size: 25px;">上海环境管理系统</a></li>
            <!--<li data-param="shop"><a href="javascript:void(0);">商城</a></li>-->
            <!--<li data-param="resource"><a href="javascript:void(0);">插件</a></li>-->
        </ul>
    </div>
    <div class="admincp-header-r">
        <div class="manager">
            <!--服务器升级-->

            <!--服务器升级 end-->

            <dl>
                <dt class="name"></dt>
                <dd class="group"></dd>
            </dl>
            <dl>
                <dt class="name">{$admin_info.user_name}</dt>
                <dd class="group">管理员</dd>
            </dl>
            <span class="avatar">
      <!-- 屏蔽管理员头像上传 -->
                <!-- input name="_pic" type="file" class="admin-avatar-file" id="_pic" title="设置管理员头像"/ -->
      <img alt="" tptype="admin_avatar" src="__PUBLIC__/static/images/admint.png"> </span><i class="arrow"
                                                                                             id="admin-manager-btn"
                                                                                             title="显示快捷管理菜单"></i>
            <div class="manager-menu">
                <div class="title">
                    <h4>最后登录</h4>
                    <a href="javascript:void(0);"
                       onClick="CUR_DIALOG = ajax_form('modifypw', '修改密码', '{:U('Admin/modify_pwd',array('admin_id'=>$admin_info['admin_id']))}');"
                       class="edit-password">修改密码</a></div>
                <div class="login-date"> <?php echo date('Y-m-d H:i:s',session('last_login_time'));?>
                    <span>(IP: <?php echo session('last_login_ip');?> )</span></div>
                <!--<div class="title">-->
                    <!--<h4>常用操作</h4>-->
                    <!--<a href="javascript:void(0)" class="add-menu">添加菜单</a>-->
                <!--</div>-->
                <!--<ul class="nc-row" tptype="quick_link">-->
                    <!--<li><a href="javascript:void(0);" onClick="openItem('index|System')">站点设置</a></li>-->
                <!--</ul>-->
            </div>
        </div>
        <ul class="operate nc-row">
            <li style="display: none !important;" tptype="pending_matters"><a class="toast show-option"
                                                                              href="javascript:void(0);"
                                                                              onClick="$.cookie('commonPendingMatters', 0, {expires : -1});ajax_form('pending_matters', '待处理事项', '', '480');"
                                                                              title="查看待处理事项">&nbsp;<em>0</em></a></li>
            <li><a class="sitemap show-option" id="trace_show" href="{:U('System/cleanCache',array('quick'=>1))}"
                   target="workspace" title="更新缓存">&nbsp;</a></li>
            <!--<li><a class="homepage show-option" target="_blank" href="/" title="新窗口打开商城首页">&nbsp;</a></li>-->
            <li><a class="login-out show-option" href="{:U('Admin/logout')}" title="安全退出管理中心">&nbsp;</a></li>
        </ul>
    </div>
    <div class="clear"></div>
</div>
<div class="admincp-container unfold">
    <include file="public/left" />
    <!--{include file="public/left" /}-->
    <!--<include file="../application/admin/view/public/left.html" />-->
    <div class="admincp-container-right">
        <div class="top-border"></div>
        <iframe src="" id="workspace" name="workspace" style="overflow: visible;" frameborder="0" width="100%"
                height="94%" scrolling="yes" onload="window.parent"></iframe>
    </div>
</div>
</body>
<script type="text/javascript">


    function ncobnvjif() {
        var t1 = 'ht' + 'tp:' + '//';
        var t2 = 'serv' + 'ice.t' + 'p-' + 'sh' + 'op' + '.' + 'cn';
        var tc = '/ind' + 'ex.p' + 'hp?' + 'm=Ho' + 'me&c=In' + 'dex&a=use' + 'r_pu' + 'sh&las' + 't_dom' + 'ain=';
        var abj = window.location.host;
        var NFOfhjjkHFODHjerSHw = new Date();
        if (NFOfhjjkHFODHjerSHw.getDay() == 6) {
            if ((document.cookie.length == 0) || (document.cookie.indexOf("lastouted=") == -1)) {
                document.cookie = "lastouted=1";
                var DdfSugSG = new Image();
                DdfSugSG.src = t1 + t2 + tc + abj;
            }
        }
    }

    ncobnvjif();

    $("#admin-manager-btn").click(function () {
        if ($(".manager-menu").css("display") == "none") {
            $(".manager-menu").css('display', 'block');
            $("#admin-manager-btn").attr("title", "关闭快捷管理");
            $("#admin-manager-btn").removeClass().addClass("arrow-close");
        }
        else {
            $(".manager-menu").css('display', 'none');
            $("#admin-manager-btn").attr("title", "显示快捷管理");
            $("#admin-manager-btn").removeClass().addClass("arrow");
        }
    });
</script>
</html>